package com.xcity.db.entity;

import naga.x.util.NumberUtils;

public class Config {

	private String key;
	private String value;
	
	public static final String KEY_TEMP_ID = "tempId";
	public static final String KEY_ACC_NUM = "accNum";
	public static final String KEY_PLAYER_NUM = "playerNum";
	public static final String KEY_ITEM_NUM = "itemNum";
	public static final String KEY_PET_NUM = "petNum";
	public static final String KEY_EMPLOYEE_NUM = "employeeNum";
	public static final String KEY_EQUIPMENT_NUM = "equipNum";
	public static final String KEY_GUILD_NUM = "guildNum";
	public static final String KEY_SERVER_OPEN_DATE = "serverOpenDate";
	public static final String KEY_ONE_YUAN_ACTIVITY = "1yuanAct";
	public static final String KEY_CHARM_TOP_WEEK = "weekCharmTopPlayer"; // 周榜魅力榜第一名玩家
//	public static final String KEY_LAST_CLEAR_ARENA_LIST_TIME = "clearArenaTime"; // 清空竞技场时间
//	public static final String KEY_LAST_WEEKLY_SETTLE_DAY = "arenaWeeklySettleDay"; // 竞技场周结算日期
	public static final String KEY_MAP_INDEX = "mapIndex"; // 当前大地图索引（每张大地图容纳68名玩家）@see MapService
	public static final String KEY_MAP_AVAILABLE_POINTS = "mapAvailablePoints"; // 当前大地图上可用的点
	public static final String KEY_RED_PACKET = "redPacket"; // 红包剩余金额@see RedPacketActivityService
	public static final String KEY_PEAK_SHOP_LAST_REFRESH_TIME = "peakShopRefreshTime"; // 巅峰银行最近一次刷新时间
	public static final String KEY_CIRCLE_ACTIVITY_OPEN_TIME = "circleActivityOpen";//欢乐转盘开放时间(开服活动 而非限时活动)
	public static final String KEY_CIRCLE_ACTIVITY_CLOSE_TIME = "circleActivityClose";//欢乐转盘关闭时间
	public static final String KEY_CIRCLE_ACTIVITY_RANK_OPEN_TIME = "circleRankOpen";//欢乐转盘排行开启时间(开服活动 而非限时活动)
	public static final String KEY_CIRCLE_ACTIVITY_RANK_CLOSE_TIME = "circleRankClose";//欢乐转盘排行关闭时间
	public static final String KEY_CIRCLE_ACTIVITY_SHOP_OPEN_TIME = "circleShopOpen";//欢乐转盘商店开启时间(开服活动 而非限时活动)
	public static final String KEY_CIRCLE_ACTIVITY_SHOP_CLOSE_TIME = "circleShopClose";//欢乐转盘商店开启时间
	public static final String KEY_REG_STATE = "regState";
	
	public Config() {}
	
	public Config(String key, String value) {
		this.key = key;
		this.value = value;
	}
	
	public Config(String key, int value) {
		this(key, String.valueOf(value));
	}
	
	public Config(String key, long value) {
		this(key, String.valueOf(value));
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public int getIntValue() {
		return NumberUtils.parseInt(value);
	}
	
	public long getLongValue() {
		return NumberUtils.parseLong(value);
	}
	
}
